<template>
    <div>
        编程导航
        <button @click="tiao">跳转到DOM操作</button>
        <button @click="go">向上一页</button>
        <button @click="goback">向下一页</button>
    </div>
</template>

<script type="text/ecmascript-6">
 export default{
     data(){
         return{

         }
     },
     methods:{
         tiao(){
            //  跳转组件
             this.$router.push('dom')
         },
         go(){
             this.$router.go(-1);
         },
         goback(){
              this.$router.go(1);
         }
     }
 }
</script>

<style lang="stylus" rel="stylesheet/stylus">

 
</style>
